package ncku.account.data.old;

import java.util.Scanner;
import ncku.account.data.GlobalData;


public class Account {
	Scanner scanner = new Scanner(System.in);
	String name;
	int money;
	
	public Account() {
		
	}
	//新增帳戶名稱
	public void accountAdd(){
		System.out.println("Please input Your New Account Name:");
		name = scanner.nextLine();
		System.out.println("Please input Your Money:");
		money = scanner.nextInt();
		
		GlobalData.accountName = name;
		GlobalData.accountMoney = money;
		GlobalData.balanceMoney = money;
		
	}
	
}
